package ca.cbc.giscommon.entity;

import com.vividsolutions.jts.geom.Geometry;
import org.hibernate.annotations.Type;

import javax.persistence.Column;
import javax.persistence.MappedSuperclass;

/**
 * Created by IntelliJ IDEA.
 * User: chenl
 * Date: 3/9/12
 * Time: 11:38 AM
 * To change this template use File | Settings | File Templates.
 */
@MappedSuperclass
public class BaseEntity {
    Geometry theGeom;

    @Column(name = "the_geom")
    @Type(type = "org.hibernatespatial.GeometryUserType")
    public Geometry getTheGeom() {
        return theGeom;
    }

    public void setTheGeom(Geometry theGeom) {
        this.theGeom = theGeom;
    }
}
